from django.contrib import admin
from rest_framework import serializers

from xiaochengxu import models


# class Sns_comment_admin(admin.ModelAdmin):
#     # 列表页显示那些字段（列）
#     list_display = ['id', 'content', 'user_id', 'creat_time']
#     # 搜索字段
#     search_fields = ['id', 'user_id', 'status', 'creat_time']


# class Sns_content_admin(admin.ModelAdmin):
#     # 列表页显示那些字段（列）
#     list_display = ['id', 'content', 'status', 'user_id','read_num', 'creat_time']
#     # 搜索字段
#     search_fields = ['content']
#     # 侧边过滤器
#     list_filter = ['id', 'user_id', 'status']


# admin.site.register(models.Sns_content, Sns_content_admin)
# admin.site.register(models.Sns_comment, Sns_comment_admin)
